﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
<neq name="ts['site']['page_title']" value="">
    {$ts['site']['page_title']} <neq name="ts['app']['app_alias']" value="">- {$ts['app']['app_alias']}&nbsp;</neq>- {$ts['site']['site_name']} <neq name="ts['site']['site_slogan']" value="">- {$ts['site']['site_slogan']}</neq>
<else/>
    {$ts['site']['site_name']} <neq name="ts['site']['site_slogan']" value="">- {$ts['site']['site_slogan']}</neq>
</neq>
</title>
<link rel="shortcut icon" href="__THEME__/favicon.ico" />
<meta name="keywords" content="{$ts['site']['site_header_keywords']}" />
<meta name="description" content="{$ts['site']['site_header_description']}" />
<script>
	var _UID_   = '{$uid}';
	var _MID_   = '{$mid}';
	var _ROOT_  = '__ROOT__';
	var _THEME_ = '__THEME__';
	var _PUBLIC_ = '__PUBLIC__';
</script>
<!-- 全局风格CSS -->
<link href="__THEME__/main.css?<?php echo date('Ymd', time()); ?>" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/js/tbox/box.css" rel="stylesheet" type="text/css" />
<!-- 核心JS加载 -->
<script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/tbox/box.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/scrolltopcontrol.js"></script>
<script src="__PUBLIC__/js/jquery.jgrow.min.js"></script>

</head>
<body class="body_bg">
<div class="div_body">

<div class="header_bg">
 <div class="header"><!-- 头部 begin -->
    <div class="logo"><a href="{:U('home/Index')}" >&nbsp;</a></div>
    <session name="userInfo">
	<div class="nav_sub br3">
      {$mid|getUserSpace=###,'','','',false}<!--<a href="{:U('home/User/findfriend')}">找人</a>--><a href="{:U('home/Account')}">设置</a><a href="{:U('index/Advise/index')}">建议</a><a href="{:U('home/Account/invite')}">邀请</a>|
      <volist name="ts['ucenter']['app']" id="uc_app">
	  	<php> if($uc_app['appid'] == $ts['ucenter']['current_appid'])continue; </php>
	  	<a href="<?php echo $uc_app['url']; ?>" target="_blank"><?php echo $uc_app['name']; ?></a>|
	  </volist>
	  <a href="{:U('home/Public/logout')}">退出</a>
	   </div>
	  </session>
      <nosession name="userInfo">
      <div class="nav_sub">
      	<eq name="ts['site']['site_anonymous_square']" value="1">
      	  <a href="{:U('index/Index/index')}">随便看看</a>&nbsp;|&nbsp;
      	</eq>
        <a href="{:U('index/Advise/index')}">给我们提建议</a>&nbsp;|&nbsp;
      	<a href="{:U('home/Public/register')}">注册</a>&nbsp;|&nbsp;
      	<!--<a href="{:U('home/Public/login')}">登录</a>-->
		<a href="javascript:ui.quicklogin();">登录</a>
      </div>
     </nosession>
	 
    <div class="nav">

      <ul>
        <li 
        <php>
        if(APP_NAME == 'home' && MODULE_NAME == 'Home')echo 'class="on"';
        if(APP_NAME == 'home' && MODULE_NAME == 'Myshop')echo 'class="on"';
         if(APP_NAME == 'home' && MODULE_NAME == 'Myqiugou')echo 'class="on"';
        </php>
        ><a href="{:U('home')}" class="fb14">首页</a></li>
        <li 
        <php>
        if(APP_NAME == 'home' && MODULE_NAME == 'Blog')echo 'class="on"';
        </php>
        ><a href="{:U('home/Blog/index')}" class="fb14">博客</a></li>
        <li 
        <php>
        if(APP_NAME == 'index' && (MODULE_NAME == 'Index' || MODULE_NAME == 'Shop'))echo 'class="on"';
        </php>
        ><a href="{:U('index/Shop/index')}" class="fb14">出售</a></li>
        
        <li 
        <php> 
        if( APP_NAME == 'index' && MODULE_NAME == 'Qiugou')echo 'class="on"';
		</php> 
		><a href="{:U('index/Qiugou/index')}" class="fb14">求购</a>
        </li>
        <li 
        <php>
        if( APP_NAME == 'index' && MODULE_NAME == 'Blog')echo 'class="on"';
        </php>
        ><a href="{:U('index/Blog/index')}" class="fb14">讨论分享</a></li>
		<li><a href="http://www.taobao.com/go/chn/tbk_channel/lady.php?pid=mm_26026632_3093897_10328409&eventid=101345" target="_blank" class="fb14">女装</a>
		</li>
        <li id="header_dropdown_message"
        <php>
        if( APP_NAME == 'home' && MODULE_NAME == 'Message' )echo 'class="on"';
        if( APP_NAME == 'home' && MODULE_NAME == 'User' && ( ACTION_NAME == 'atme' || ACTION_NAME == 'comments' ) )echo 'class="on"';
        </php> >
		<session name="userInfo">
		<a href="{:U('home/Message/index')}" class="ico_arrow fb14 ">消息</a>
		</session>
          <div class="dropmenu"> 
            <a href="{:U('home/Message/index')}">
              短消息
              <span class="cRed fB" id="count_message"><gt name="userCount['message']" value="0">({$userCount.message})</gt></span>
            </a> 
			<a href="{:U('home/Message/notify')}">
			        系统通知
              <span class="cRed fB" id="count_notify"><gt name="userCount['notify']" value="0">({$userCount.notify})</gt></span>
            </a>
            </a> 
			
          </div>
          	<div class="msg_top" id='count_total_div' style='display:<elt name="userCount['total']" value="0">none</elt>'>
          		<a href="" id='count_total'>{$userCount['total']}</a>
          	</div>
          </neq>
        </li>
      </ul>
    </div>
  </div>
</div>





<volist name="ts['ad']['header']" id="vo">
<div class="ad_header"><div class="ke-post">{$vo['content']}</div></div>
</volist>
<script>
$(document).ready(function(){
	$("#header_dropdown_friend").hover(
		function(){ $(this).addClass("hover"); },
		function(){ $(this).removeClass("hover"); }
	);
	$("#header_dropdown_app").hover(
	    function(){ $(this).addClass("hover"); },
	    function(){ $(this).removeClass("hover"); }
	);
	$("#header_dropdown_message").hover(
	    function(){ $(this).addClass("hover"); },
	    function(){ $(this).removeClass("hover"); }
    );
	
	<php>if($mid > 0) {</php>
		ui.countNew();
		setInterval("ui.countNew()",100000);
	<php>}</php>
});
</script>